﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WLMes.Models
{
    /// <summary>
    /// 输入参数
    /// 需求单
    /// </summary>
    public class LABEL_ASK_request
    {
        /// <summary>
        /// 请求编号
        /// </summary>
        public string RequestCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 标签类型
        /// </summary>
        public string LabelType { get; set; }
        /// <summary>
        /// 品类类型编码
        /// </summary>
        public string CategoryType { get; set; }
        /// <summary>
        /// 生产批次号
        /// </summary>
        public string ProductionBatchCode { get; set; }
        /// <summary>
        /// 请求（操作）时间
        /// </summary>
        public string RequestTime { get; set; }

    }

    /// <summary>
    /// 回传数据
    /// 返回信息
    /// </summary>
    public class LABEL_ASK_response
    {
        /// <summary>
        ///事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 描述信息
        /// </summary>
        public string EventDescription { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 生产批次号
        /// </summary>
        public string ProductionBatchCode { get; set; }

        /// <summary>
        /// 任务单集合
        /// </summary>
        public List<TaskSet> TaskSets { get; set; } = new List<TaskSet>();

    }

    public class TaskSet
    {
        public int SequenceNumber { get; set; }
        public string TaskNumber { get; set; }
        public string SalesOrder { get; set; }
        public string Category { get; set; }
        public int Quantity { get; set; }
        public string Color { get; set; }
        public string PrintSize { get; set; }
        public string FillTexture { get; set; }
        public string VeneerTexture { get; set; }
        public string ExtDescription { get; set; }

    }
}
